Optimal. Leaf size=56 \[ a d \cos (c) \text{CosIntegral}(d x)-a d \sin (c) \text{Si}(d x)-\frac{a \sin (c+d x)}{x}+\frac{b \sin (c+d x)}{d^2}-\frac{b x \cos (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.116717, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.412, Rules used = {3339, 3297, 3303, 3299, 3302, 3296, 2637} \[ a d \cos (c) \text{CosIntegral}(d x)-a d \sin (c) \text{Si}(d x)-\frac{a \sin (c+d x)}{x}+\frac{b \sin (c+d x)}{d^2}-\frac{b x \cos (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3339
Rule 3297
Rule 3303
Rule 3299
Rule 3302
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int \frac{\left (a+b x^3\right ) \sin (c+d x)}{x^2} \, dx &=\int \left (\frac{a \sin (c+d x)}{x^2}+b x \sin (c+d x)\right ) \, dx\\ &=a \int \frac{\sin (c+d x)}{x^2} \, dx+b \int x \sin (c+d x) \, dx\\ &=-\frac{b x \cos (c+d x)}{d}-\frac{a \sin (c+d x)}{x}+\frac{b \int \cos (c+d x) \, dx}{d}+(a d) \int \frac{\cos (c+d x)}{x} \, dx\\ &=-\frac{b x \cos (c+d x)}{d}+\frac{b \sin (c+d x)}{d^2}-\frac{a \sin (c+d x)}{x}+(a d \cos (c)) \int \frac{\cos (d x)}{x} \, dx-(a d \sin (c)) \int \frac{\sin (d x)}{x} \, dx\\ &=-\frac{b x \cos (c+d x)}{d}+a d \cos (c) \text{Ci}(d x)+\frac{b \sin (c+d x)}{d^2}-\frac{a \sin (c+d x)}{x}-a d \sin (c) \text{Si}(d x)\\ \end{align*}
Mathematica [A] time = 0.135205, size = 56, normalized size = 1. \[ a d \cos (c) \text{CosIntegral}(d x)-a d \sin (c) \text{Si}(d x)-\frac{a \sin (c+d x)}{x}+\frac{b \sin (c+d x)}{d^2}-\frac{b x \cos (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 79, normalized size = 1.4 \begin{align*} d \left ({\frac{ \left ( 1+2\,c \right ) b \left ( \sin \left ( dx+c \right ) - \left ( dx+c \right ) \cos \left ( dx+c \right ) \right ) }{{d}^{3}}}+3\,{\frac{cb\cos \left ( dx+c \right ) }{{d}^{3}}}+a \left ( -{\frac{\sin \left ( dx+c \right ) }{dx}}-{\it Si} \left ( dx \right ) \sin \left ( c \right ) +{\it Ci} \left ( dx \right ) \cos \left ( c \right ) \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 2.54833, size = 93, normalized size = 1.66 \begin{align*} \frac{{\left (a{\left (\Gamma \left (-1, i \, d x\right ) + \Gamma \left (-1, -i \, d x\right )\right )} \cos \left (c\right ) + a{\left (-i \, \Gamma \left (-1, i \, d x\right ) + i \, \Gamma \left (-1, -i \, d x\right )\right )} \sin \left (c\right )\right )} d^{3} - 2 \, b d x \cos \left (d x + c\right ) + 2 \, b \sin \left (d x + c\right )}{2 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.7162, size = 234, normalized size = 4.18 \begin{align*} -\frac{2 \, a d^{3} x \sin \left (c\right ) \operatorname{Si}\left (d x\right ) + 2 \, b d x^{2} \cos \left (d x + c\right ) -{\left (a d^{3} x \operatorname{Ci}\left (d x\right ) + a d^{3} x \operatorname{Ci}\left (-d x\right )\right )} \cos \left (c\right ) + 2 \,{\left (a d^{2} - b x\right )} \sin \left (d x + c\right )}{2 \, d^{2} x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b x^{3}\right ) \sin{\left (c + d x \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]